<template>
  <div>
    <keep-alive>
      <router-view v-if="$route.meta.keepAlive"></router-view>
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive"></router-view>
  </div>
</template>

<script>
import dingMixin from  '@/mixins/ding'
export default {
  name: '',
  data () {
    return {
      
    };
  },
  mixins: [dingMixin],
  components: {},
  watch: {
    $route (to, from) {
      if(to.meta.title) this.mobileSetTitle(to.meta.title);
    }
  },
  mounted () {
    this.getDingConfig().then(config =>{
      this.dingConfig = config;
      this.dingLogin(config.corpId, () => {
        this.$router.replace({ name: 'mpiecework-uncompleteList', params: {id: this.$route.params.id, warehousingBelongId: this.$route.params.warehousingBelongId }})
      });
      this.run_dd_config();
    })
  },
  methods: {}
}
</script>

<style lang='scss' scoped>
</style>